Helpful Information
 
 
Category: Cron
Cron -> Php Script

Hey,

Ive succesfully set up a Cron job to run a PHP script every night at midnight on my site but am having a few problems.

Basically I want the script to access the MySql database and make a field called "messages" = "0".

When the script runs at midnight I get emailed an error saying the script didnt run correctly.

Does anyone have any idea if I have to code the PHP differently/add anything extra in because of the way im wanting to run it?


Andy

Is your error related to the cron job or the PHP script itself?

Please post your script.

I managed to fix this problem - turns out to be a problem with the cron command I used....ooops!


Andy










privacy (GDPR)